package m.toolkit.codegenerator;

import java.net.URL;
import java.util.ArrayList;
import java.util.List;

import m.framework.template.TemplateUtil;
import m.olive.data.controller.DsParamController;
import m.olive.data.model.DsParam;
import m.olive.graph.controller.RrdGraphController;
import m.olive.graph.model.RrdGraph;

import org.dom4j.DocumentException;

public class Main {
	
	public static void main(String[] args) throws DocumentException {
		String tableName="mm_rrdGraphItem";
		String rootPkg="m.olive.graph";
		boolean overwrite=true;
		
		List<GeneratFileType> types=new ArrayList();
		types.add(GeneratFileType.dto);
		types.add(GeneratFileType.controller);
		types.add(GeneratFileType.model);	
		types.add(GeneratFileType.service);
	
//		创建java文件
		//GeneratorFacade.create(tableName, rootPkg, overwrite,types);
		
		//创建页面
		GeneratorFacade.createPage(RrdGraphController.class,true);
		
	}
}
